<?php
set_time_limit(0);
$_syspause = 1;
unset($_GET);
unset($_POST);
unset($_REQUEST);
unset($_SESSION);

require_once($_SERVER['DOCUMENT_ROOT'] . "/defaultconf.mex");
require_once $GLOBALS['LIB']."Pr_db/Transaction/transact.class.php";
MYTCONN();
if(!isset($_SESSION[$SESSID])){$_SESSION[$SESSID] = 0;}
$GET_AUTOTRN = $GLOBALS['MYT']->db_array("SELECT tcmtCorrespondent, tcmtPID FROM trn_corrmethods
                                        INNER JOIN corresponsales ON CorrNumero = tcmtCorrespondent
                                        INNER JOIN trn_methodprocedures ON trmpPID = tcmtPID AND trmpMethod = tcmtMethod
                                        WHERE tcmtFlag = 2 AND tcmtPID != 162");

for ($cr_pos = 1; $cr_pos <= $GET_AUTOTRN[0]; $cr_pos++) {

    $Transact = new Transact();
    $Transact->transaction($GET_AUTOTRN[$cr_pos]['tcmtCorrespondent'],$GET_AUTOTRN[$cr_pos]['tcmtPID'],null,null,null);

}
